export default {

    data() {
        return {
            
        };
    },

    methods: {
        isPic(file) {
            if (!file) {
                return false;
            }
            file = file.toUpperCase();
            if (
                file === 'JPEG' ||
                file === 'JPG' ||
                file === 'BMP' ||
                file === 'GIF' ||
                file === 'PNG'
            ) {
                return true;
            }
            return false;
        },

        isVideo(file) {
            if (!file) {
                return false;
            }
            file = file.toUpperCase();
            if (
                file === 'MP4' ||
                file === 'MOV' ||
                file === 'MP3'
            ) {
                return true;
            }
            return false;
        },


        isText(file) {
            if (!file) {
                return false;
            }
            file = file.toUpperCase();
            if (
                file === 'DOC' ||
                file === 'DOCX' ||
                file === 'XLS' ||
                file === 'XLSX' ||
                file === 'PDF' ||
                file === 'TXT' ||
                file === 'PPT' ||
                file === 'PPTX'
            ) {
                return true;
            }
            return false;
        },
    }

}